package com.ruoyi.common.core.domain.model;

/**
 * Apple Token载荷信息
 *
 * @author ruoyi
 */
public class AppleTokenPayload
{
    /**
     * Apple User ID (subject)
     */
    private String sub;

    /**
     * 用户邮箱
     */
    private String email;

    /**
     * 邮箱是否已验证
     */
    private Boolean emailVerified;

    /**
     * 签发者
     */
    private String iss;

    /**
     * 受众
     */
    private String aud;

    /**
     * 过期时间
     */
    private Long exp;

    /**
     * 签发时间
     */
    private Long iat;

    public AppleTokenPayload()
    {
    }

    public AppleTokenPayload(String sub, String email, Boolean emailVerified)
    {
        this.sub = sub;
        this.email = email;
        this.emailVerified = emailVerified;
    }

    public String getSub()
    {
        return sub;
    }

    public void setSub(String sub)
    {
        this.sub = sub;
    }

    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public Boolean getEmailVerified()
    {
        return emailVerified;
    }

    public void setEmailVerified(Boolean emailVerified)
    {
        this.emailVerified = emailVerified;
    }

    public String getIss()
    {
        return iss;
    }

    public void setIss(String iss)
    {
        this.iss = iss;
    }

    public String getAud()
    {
        return aud;
    }

    public void setAud(String aud)
    {
        this.aud = aud;
    }

    public Long getExp()
    {
        return exp;
    }

    public void setExp(Long exp)
    {
        this.exp = exp;
    }

    public Long getIat()
    {
        return iat;
    }

    public void setIat(Long iat)
    {
        this.iat = iat;
    }

    @Override
    public String toString()
    {
        return "AppleTokenPayload{" +
                "sub='" + sub + '\'' +
                ", email='" + email + '\'' +
                ", emailVerified=" + emailVerified +
                ", iss='" + iss + '\'' +
                ", aud='" + aud + '\'' +
                ", exp=" + exp +
                ", iat=" + iat +
                '}';
    }
}